package wj.tree;

import wj.Scope;
import wj.WJValue;

public class RetrieveNode implements WJNode{

	private Scope scope;
	private String varName;
	
	public RetrieveNode(Scope scope, String varName){
		this.scope = scope;
		this.varName = varName;
	}
	
	@Override
	public WJValue evaluate() {
		return scope.retrieveVarValue(varName);
	}

}
